<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="__PUBLIC__/layui/css/layui.css"  media="all">
    <link rel="stylesheet" href="__PUBLIC__/font-awesome/css/font-awesome.min.css" media="all" />
    <link rel="stylesheet" href="__CSS__/admin.css"  media="all">
    <!--<script src="http://{$Think.config.google_map_url}" async="async"></script>-->
    <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->

</head>
<style>
    .layui-upload-img{
        width: 100px;!important;
    }
    .addclassify{
        display: inline-block;
        width: 40px;
        height: 40px;
        border: 1px solid #666;
        line-height: 40px;
        border-radius: 40px;
        text-align: center;
        cursor: pointer;
    }
    .layui-input-inline{
        line-height: 40px;
    }
</style>
<body>
<div style="margin-top: 20px;">
</div>

<form class="layui-form" id="admin">

    <div class="layui-tab layui-tab-card" style="box-shadow:none">
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                {if empty($cache)}暂无套餐配置{/if}
                {volist name='$cache' id='value'}
                <div class="layui-form-item">
                    <label class="layui-form-label">套餐</label>
                    <div class="layui-input-inline" style="width: 800px;background: #00a65a;color: #fff;text-align: center;">
                        <div class="layui-input-inline">PK：{$value.pk}</div>
                        <div class="layui-input-inline">日期：{$value.time}</div>
                        <div class="layui-input-inline">最低价(￥)：{$value.min_price}</div>
                        <div class="layui-input-inline">库存：{$value.number}</div>
                    </div>
                </div>
                {volist name='$value.specs' id='v'}
                <div class="layui-form-item">
                    <label class="layui-form-label"></label>
                    <div class="layui-input-inline" style="width: 800px;background: #00a0e9;color: #fff;text-align: center;">
                        <div class="layui-input-inline">套餐PK：{$v.specs_id}</div>
                        <div class="layui-input-inline" style="width:auto">套餐名称：{$v.specs_name}</div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label"></label>
                    <div class="layui-input-inline" style="width: 800px">
                        <table class="layui-table" lay-even="" lay-skin="line">
                            <thead>
                            <tr>
                                <th>人群id</th>
                                <th>人群名称</th>
                                <th>中文名称</th>
                                <th>单价</th>
                                <th>库存</th>
                                <th>最小购买值</th>
                            </tr>
                            </thead>
                            {volist name='$v.person' id='vv'}
                            <tr>
                                <th>{$vv.person_id}</th>
                                <th>{$vv.person_name}</th>
                                <th>{$vv.person_cname}</th>
                                <th>{$vv.person_price}</th>
                                <th>{$vv.person_num}</th>
                                <th>{$vv.minorder_num}</th>
                            </tr>
                            {/volist}
                        </table>
                    </div>
                </div>
                {/volist}
                {/volist}
                <!--<table class="layui-table" lay-even="" lay-skin="line">-->
                    <!--<colgroup>-->
                        <!--<col width="8%">-->
                        <!--<col width="8%">-->
                        <!--<col width="8%">-->
                        <!--<col width="8%">-->
                    <!--</colgroup>-->
                    <!--<thead>-->

                    <!--<tr>-->
                        <!--<th>pk</th>-->
                        <!--<th>日期</th>-->
                        <!--<th>最低单价</th>-->
                        <!--<th>库存</th>-->
                    <!--</tr>-->
                    <!--</thead>-->
                    <!--<tbody>-->
                    <!--{volist name='$cache' id='value'}-->
                    <!--<tr bgcolor="red">-->
                        <!--<td>{$value.pk}</td>-->
                        <!--<td>{$value.time}</td>-->
                        <!--<td>{$value.min_price}</td>-->
                        <!--<td>{$value.number}</td>-->
                    <!--</tr>-->
                    <!--{if !empty($value['specs'])}-->
                    <!--<tr>-->
                        <!--<th>&#45;&#45;</th>-->
                        <!--<th>套餐id</th>-->
                        <!--<th>套餐名</th>-->
                        <!--<th></th>-->
                    <!--</tr>-->
                    <!--{volist name='$value["specs"]' id='v'}-->
                    <!--<tr>-->
                        <!--<th></th>-->
                        <!--<th>{$v.specs_id}</th>-->
                        <!--<th>{$v.specs_name}</th>-->
                        <!--<th>&#45;&#45;</th>-->
                    <!--</tr>-->
                    <!--{/volist}-->
                    <!--{/if}-->
                    <!--{/volist}-->

                    <!--</tbody>-->
                <!--</table>-->



            </div>
        </div>


    </div>

    <!--<div class="layui-form-item">-->
    <!--<div class="layui-input-block">-->
    <!--<button class="layui-btn" lay-submit lay-filter="admin">立即提交</button>-->
    <!--<button type="reset" class="layui-btn layui-btn-primary">重置</button>-->
    <!--</div>-->
    <!--</div>-->

</form>

<script src="__PUBLIC__/layui/layui.js"></script>
<script src="__PUBLIC__/jquery/jquery.min.js"></script>
<script>
    var message;
    layui.config({
        base: '__JS__/',
        version: '1.0.1'
    }).use(['app', 'message'], function() {
        var app = layui.app,
            $ = layui.jquery,
            layer = layui.layer;
        //将message设置为全局以便子页面调用
        message = layui.message;
        //主入口
        app.set({
            type: 'iframe',
            width: 300,
        }).init();
    });
</script>
<!-- 配置文件 -->
<script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.config.js"></script>
<!-- 编辑器源码文件 -->
<script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.all.js"></script>
<script>

    var ue0 = UE.getEditor('jieshao');
    // var jieshao2 = UE.getEditor('jieshao2');
    var yongshi = UE.getEditor('yongshi');
    var baohan = UE.getEditor('baohan');
    var buhan = UE.getEditor('buhan');
    var zhuyi = UE.getEditor('zhuyi');
    var tuigai = UE.getEditor('tuigai');


    function muban(t){
        var op=""
        op+=" <option  value=''>请选择</option>"
        $.each(t,function (i,v) {
            op+="<option value='"+v.id+"'>"+v.name+"</option>"
        })
        return op;
    }

    function team(t){
        var op="";
        op+="  <option value=\"999999\">自营</option>";
        $.each(t,function (i,v) {
            op+="<option value='"+v.id+"'>"+v.name+"</option>"
        });
        op+="  <option value=\"1000000\">其他</option>";
        return op;
    }


    layui.use(['layer', 'form','laydate','layedit'], function() {
        // var laydate = layui.laydate;
        var layer = layui.layer,
            $ = layui.jquery,
            laydate= layui.laydate,
            form = layui.form;
    });
</script>

<!-- 实例化编辑器 -->
<script type="text/javascript">


</script>
</body>
</html>
